using System;
using System.Collections;
using System.Collections.Generic;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Timeline;

public class VActSkill_Loader : MonoBehaviour
{
    [SerializeReference]
    public VActSkillBase overrideSkill;

    public void Init(VActProcessor vActProcessor, VActInput vActInput, VActSkillBase settingSkill = null)
    {
        if (settingSkill != null)
        {
            overrideSkill = settingSkill;
            settingSkill.InitLoader(vActProcessor, vActInput);
        }
        else if (overrideSkill == null)
        {
            Reset();
        }
        overrideSkill.InitLoader(vActProcessor, vActInput);
    }

    private void Reset()
    {
        overrideSkill = new VActSkillBaseOverride();
    }
}

